{template mainhead}

<div id="root_middleright">

<!--{if $webglobal['action']=='list'}-->

	<dl class="my_form">
		<dt>注册用户列表</dt>
	</dl>
	<div class="searchbar autoclear">
		<form id="searchform" method="get" action="{WEBURLPATH}/{$webserver['curfilename']}.php">
			<input type="hidden" name="action" value="{$webglobal['action']}" />
			<span class="right"><button type="submit">搜索</button></span>
			<span>关键字：</span><input type="text" name="searchkey" value="{$webglobal['CPP']['searchkey']}" size="50" />
		</form>
	</div>
	<form id="listform" method="post" action="{WEBURLPATH}/{$webserver['curfilename']}.php">
		<input type="hidden" name="action" id="listform_action" value="{$webglobal['action']}" />
		<input type="hidden" name="doit" value="1" />
		<input type="hidden" name="gourl" value="{$webglobal['gourl']}" />
		<table class="datatable">
			<thead>
				<th width="10%">ID</th>
				<th width="10%">姓名</th>
				<th width="20%">邮箱</th>
				<th width="20%">手机</th>
				<th width="20%">结婚日期</th>
				<th width="20%">注册时间</th>
			</thead>
			<tbody>
				<!--{if $webglobal['datanum']>0}-->
					<!--{eval $i=0;}-->
					<!--{loop $webglobal['dataarray'] $tempkey $tempvalue}-->
						<tr{if intval(++$i%2)==0} class="evenrow"{/if}>
							<td>{$tempvalue['uid']}</td>
							<td>{$tempvalue['truename']}</td>
							<td>{$tempvalue['email']}</td>
							<td>{$tempvalue['mobile']}</td>
							<td>{$tempvalue['weddingdate_show']}</td>
							<td>{$tempvalue['addtime_show']}</td>
						</tr>
					<!--{/loop}-->
				<!--{else}-->
					<tr><td colspan="20" style="text-align: center">没有符合条件的数据。</td></tr>
				<!--{/if}-->
			</tbody>
			<!--{if $webglobal['datanum']>0}-->
			<tfoot>
				<tr>
					<td colspan="2" style="text-align:left;">
						&nbsp;
					</td>
					<td colspan="10">
						<select id="list_perpage" name="perpage" onchange="window.location.href='{WEBURLPATH}/{$webserver['curfilename']}.php?{$webglobal['searchurl']}&perpage='+this.options[selectedIndex].value">
							<option value="10">每页10条</option>
							<option value="20">每页20条</option>
							<option value="30">每页30条</option>
							<option value="50">每页50条</option>
						</select>
						<script type="text/javascript">
							$("#list_perpage").val({$webglobal['CPP']['perpage']});
						</script>
					</td>
				</tr>
			</tfoot>
			<!--{/if}-->
		</table>
	</form>
	<!--{if $webglobal['datanum']>0}-->{template page}<!--{/if}-->

<!--{/if}-->

</div>
{template footer}